import { format, parseISO } from "date-fns"


const formatDate = (isoStr: string) => {
  
  const date = parseISO(isoStr);
  const display = format(date, "yyyy-MM-dd HH:mm"); 
  return display;
}

export {formatDate};

